#define _CRT_SECURE_NO_WARNINGS 1
#include<map>
#include<iostream>
using namespace std;
#include<vector>
#include<ctime>
#include"AVLtree.h"
int main() {
	const int N = 30;
	vector<int >v;
	v.reserve(N);
	srand(time(0));
	for (size_t i = 0;i < N;i++) {
		v.push_back((rand()));
		cout << v.back() << endl;
	}
	AvLTree<int, int>t;
	for (auto e : v) {
		if (e == 14604) {
			int x = 0;
		}
		t.Insert(make_pair(e, e));
		cout << "Insert:" << e << "->" << t.IsBalance()<< endl;
	}
	cout << t.IsBalance() << endl;
	return 0;
}